[PATCH] Add support of the next Ubuntu (Ubuntu 23.04 - Lunar Lobster)
authorSylvestre Ledru <sylvestre@debian.org>
Sat, 5 Nov 2022 21:35:54 +0000 (22:35 +0100)
committerGianfranco Costamagna <locutusofborg@debian.org>
Sat, 4 May 2024 05:18:23 +0000 (07:18 +0200)
Gbp-Pq: Name ubuntu-releases.patch

clang/include/clang/Driver/Distro.h
clang/lib/Driver/Distro.cpp

index dbc8b36e27856da2a336b07e9c0bd3f5578596e5..09e21b7d7b260cb1867bac7139a6e423edf3c3de 100644 (file)
@@ -75,6 +75,10 @@ public:
     UbuntuImpish,
     UbuntuJammy,
     UbuntuKinetic,
+    UbuntuLunar,
+    UbuntuMantic,
+    UbuntuNoble,
+    UbuntuOracular,
     UnknownDistro
   };
 
@@ -126,7 +130,7 @@ public:
   }
 
   bool IsUbuntu() const {
-    return DistroVal >= UbuntuHardy && DistroVal <= UbuntuKinetic;
+    return DistroVal >= UbuntuHardy && DistroVal <= UbuntuOracular;
   }
 
   bool IsAlpineLinux() const { return DistroVal == AlpineLinux; }
index a550377314245a006828044f7d993aa412d47bff..2febfc92e59c58062d6e51d189be8520c8fa4076 100644 (file)
@@ -92,6 +92,10 @@ static Distro::DistroType DetectLsbRelease(llvm::vfs::FileSystem &VFS) {
                     .Case("impish", Distro::UbuntuImpish)
                     .Case("jammy", Distro::UbuntuJammy)
                     .Case("kinetic", Distro::UbuntuKinetic)
+                    .Case("lunar", Distro::UbuntuLunar)
+                    .Case("mantic", Distro::UbuntuMantic)
+                    .Case("noble", Distro::UbuntuNoble)
+                    .Case("oracular", Distro::UbuntuOracular)
                     .Default(Distro::UnknownDistro);
   return Version;
 }